package com.framework.admin.model;

import com.framework.common.config.EntityUpdateListener;
import com.framework.common.listener.impl.BaseEntityUpdate;
import lombok.Data;

import javax.persistence.*;


/**
 * @description: 模块表单管理 model
 * @author: lizurong
 * @version: 1.0
 * @date: 2021-03-08 11:37:28
 */
@Data
@Entity
@Table(name = "sys_module_form")
@EntityListeners(EntityUpdateListener.class)
@org.hibernate.annotations.Table(appliesTo = "sys_module_form", comment = "模块表单管理")
public class ModuleForm extends BaseEntityUpdate {

	@Column(columnDefinition = "varchar(2500) COMMENT '查询sql' ")
	private String selectSql;

	@Column(columnDefinition = "varchar(2000) COMMENT '查询参数' ")
	private String queryParams;

	@Column( columnDefinition = "varchar(2000) COMMENT '更新Sql' ")
	private String updateSql;

	@Column( columnDefinition = "varchar(500) COMMENT '删除sql' ")
	private String deleteSql;

	@Column( columnDefinition = "varchar(2000) COMMENT '新增sql' ")
	private String insertSql;

	@Column(columnDefinition = "varchar(32) COMMENT '表单描述' ")
	private String formDesc;

	@Column(columnDefinition = "varchar(32) COMMENT '数据库表名' ")
	private String tableName;

	@Column(columnDefinition = "varchar(32) COMMENT '模块描述名称' ")
	private String moduleName;

	@Column(columnDefinition = "varchar(32) COMMENT '菜单id' ")
	private String menuId;

	@Column(columnDefinition = "varchar(32) COMMENT '流程定义标识' ")
	private String procDefName;

	@Column(columnDefinition = "text COMMENT '表单设计json' ")
	private String formJson;

	@Column(columnDefinition = "varchar(255) COMMENT '自定义表描述' ")
	private String tableDesc;

	@Transient
	private String menuName;

	@Transient
	private String menuCode;

	@Transient
	private String path;

	@Transient
	private String pcode;

	@Transient
	//show or hidden 取决menu 表hidden字段
	private String menuStatus;
}
